package com.example.demo.customer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//import org.springframework.web.bind.annotation.GetMapping;
@RestController
public class CustomerController {
    private final CustomerService customerService;
    public CustomerController(CustomerService customerService) {
        this.customerService = customerService;
    }

    @GetMapping
//    Customer getCustomer() {
//        return customerService.getCustomer();
//    }
    List<Customer> getCustomers() {
        return customerService.getCustomers();
    }
}
